/**
 * related to listTypeCell.ui
 * 
 * @Author : chenglm
 * @Timestamp : 2016-09-26
 */
var root=ui("$");
var aLayout_img = ui("aLayout_img");
var imageView_img = ui("imageView_img");
var aLayout_type = ui("aLayout_type");
var helperOpen = require("helper/open");
var label_remark = ui("label_remark");
//设置数据绑定的映射关系
root.setMapping({
	"aLayout_type.tag":"id",
	"imageView_img.tag":"img",
	"label_name.text":"realName",
	"label_remark.text":"name",
	"label_remark.tag":"typeId",
	"aLayout_img.tag":"fileDomain"
});

root.on("dataRefreshed", function(){
	if(imageView_img.tag){
		imageView_img.source= aLayout_img.tag + "" + imageView_img.tag.split(";")[0];
	}
});

aLayout_type.on("touch", function(data){
	helperOpen.open("source://view/homemaking/detail/toOrder2.ui",{id:aLayout_type.tag,selectAddress:selectAddress,typeId:label_remark.tag},"","pay_product_back");
});